package cn.itsource.pethome.pay.service.impl;

import cn.itsource.pethome.basic.service.impl.BaseServiceImpl;
import cn.itsource.pethome.pay.domain.AlipayInfo;
import cn.itsource.pethome.pay.mapper.AlipayInfoMapper;
import cn.itsource.pethome.pay.service.IAlipayInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 支付信息
 */
@Service
public class AlipayInfoServiceImpl extends BaseServiceImpl<AlipayInfo> implements IAlipayInfoService {

    @Autowired
    private AlipayInfoMapper alipayInfoMapper;
    /**
     * 通过订单号查询支付信息
     *
     * @param out_trade_no 订单号
     * @return
     */
    @Override
    public AlipayInfo loadByOrderSn(String out_trade_no) {
        return alipayInfoMapper.loadByOrderSn(out_trade_no);
    }
}
